<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title></title>
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all" />
</head>

<body>
    <div class="layui-fluid">
        <div class="layui-card">
            {if $anchor_id<=0} <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title layui_tab_title">
                    <li class=""><a href="/admin/live/dashboard">直播视频监控</a></li>
                    <li class="layui-this"><a href="/admin/chat/log">用户聊天日志</a></li>
                    <li class=""><a href="/admin/chat/live_chat">直播间聊天监控</a></li>
                </ul>
        </div>
        {/if}

        {if $anchor_id>0}
        <input type="hidden" value="{$anchor_id}" name="room_id" id="roomId" placeholder="请输入" autocomplete="off"
            class="layui-input" />
        {else/}
        <div class="layui-form layui-card-header layuiadmin-card-header-auto">

            <form class="layui-form" onsubmit="return false">
                <div class="layui-form-item">
                    用户ID：
                    <div class="layui-inline">
                        <input type="text" name="uid" placeholder="请输入" autocomplete="off" class="layui-input" />
                    </div>
                    手机号：
                    <div class="layui-inline">
                        <input type="text" name="mobile" placeholder="请输入" autocomplete="off" class="layui-input" />
                    </div>
                    用户昵称：
                    <div class="layui-inline">
                        <input type="text" name="nick_name" placeholder="请输入" autocomplete="off" class="layui-input" />
                    </div>
                    房间id(主播id)：
                    <div class="layui-inline">
                        <input type="text" name="room_id" placeholder="请输入" autocomplete="off" class="layui-input" />
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn" lay-submit lay-filter="LAY-chat-front-search">
                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                        </button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
        {/if}


        <div class="layui-card-body">
            <table id="LAY-ads-applaunch-manage" lay-filter="LAY-ads-applaunch-manage"></table>
            <script type="text/html" id="table-chat_historylist">

                {{# if(d.bannerd_status==2){ }}
                <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="unbannerd">解除禁言</a>
                {{# } else { }}
                <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="bannerd">禁言用户</a>
                {{# } }}

                {{# if(d.status==1){ }}
                <a class="layui-btn layui-btn-xs  layui-btn-warm" lay-event="shieldspeak">屏蔽发言</a>
                {{# } else { }}
                <span class="layui-btn layui-btn-xs  layui-btn-primary" style="cursor: default">已屏蔽</span>
                {{# } }}

            </script>
        </div>
    </div>
    </div>

    <script src="/layuiadmin/layui/layui.js"></script>
    <script>
        layui
            .config({
                base: "/layuiadmin/" //静态资源所在路径
                , version: "{:config('other.ui_version')}"
            }).extend({
                index: "lib/index", //主入口模块
            }).use(['index', 'admin', 'chat', 'laydate'], function () {
                var $ = layui.$,
                    form = layui.form,
                    table = layui.table;

                //监听搜索
                form.on("submit(LAY-chat-front-search)", function (data) {
                    var field = data.field;

                    //执行重载
                    table.reload("LAY-ads-applaunch-manage", {
                        where: field
                        , page: {
                            curr: 1   //默认从第一页开始搜索
                        },
                    });
                });
            });
    </script>
</body>

</html>